import java.io.File;
import java.io.IOException;

public class IODemo6 {
    public static void main(String[] args) throws IOException {
        File file = new File("./遇事问春风乄111");
        //创建该文件
        file.createNewFile();
        File dest = new File("./遇事问春风乄222");
        System.out.println(file.renameTo(dest));
    }
}
